#! /bin/bash
#启动nginx
echo 'Start nginx'
nginx -c /usr/local/nginx/conf/nginx.conf
#启动redis
echo 'Start redis'
/usr/local/redis/bin/redis-server /usr/local/redis/conf/redis.conf
#启动kingbase8
echo 'Start kingbase'
su kingbase -c "/usr/local/kingbase/Server/bin/sys_ctl -D /usr/local/kingbase/data -l /usr/local/kingbase/log/logfile.log start"
#由于其他都是后台运行，必须有一个前端运行
su root -c "/bin/bash"


